import { defineStore } from 'pinia'
import { ref,nextTick } from 'vue'

export const useRefreshStore = defineStore('refreshStore', () => {
  const refresh = ref(true)

  function setRefresh() {
    refresh.value = !refresh.value
    nextTick(() => {
      refresh.value = !refresh.value
    })
    // console.log(refresh.value, 78787878)
  }

  return { refresh, setRefresh }
})